@obiwanchinobi Fixed :) 

The code previous was:

`b.CalculationType if self.calculation_type`

and I've fixed this to say

`b.CalculationType self.calculation_type if self.calculation_type`

I have also fixed the `EarningsRateID` that was incorrect (Giving an EmployeeID not found error)