Acc_date_of_incapacity
mischa-s opened this issue · comments
Surface acc_date_of_incapacity
and use this together with the requested date to calculate acc_sched_1__incapacitated_for_6_months
and change porridge code to
acc_duration_of_incapicity: [ ['2000-01-01', true] ],
current formula appears to be
minimum_wage - (earnings + minimum_wage - maximum_wage)
It seems like conditional logic needs to be implemented along the lines of
earnings + minimum_wage > maximum_wage
? minimum_wage - (earnings + minimum_wage - maximum_wage)
: minimum_wage