Calculation on custom view field created by plugin