Added calculations for pay primary and secondard. Also created formula
field in database and linked to pay widgets