Wage: US-WA Unemployment WAGE_US_WA_UNEMP python result = (contract.futa_type != contract.FUTA_TYPE_BASIC) code ### year = payslip.dict.date_to.year rate = payslip.dict.get_rate('US_WA_UNEMP') ytd = payslip.sum('WAGE_US_WA_UNEMP', str(year) + '-01-01', str(year+1) + '-01-01') ytd += contract.external_wages remaining = rate.wage_limit_year - ytd if remaining <= 0.0: result = 0 elif remaining < categories.BASIC: result = remaining else: result = categories.BASIC ER: US-WA Unemployment ER_US_WA_UNEMP python result = (contract.futa_type != contract.FUTA_TYPE_BASIC) code rate = payslip.dict.get_rate('US_WA_UNEMP') result_rate = -rate.rate result = categories.WAGE_US_WA_UNEMP # result_rate of 0 implies 100% due to bug if result_rate == 0.0: result = 0.0 EE: US-WA LNI EE_US_WA_LNI none code hours = worked_days.WORK100.number_of_hours rate = contract.wa_lni.rate_emp_withhold if rate: result = -(hours * rate) ER: US-WA LNI ER_US_WA_LNI none code hours = worked_days.WORK100.number_of_hours rate = contract.wa_lni.rate withholding = categories.EE_US_WA_LNI if rate: result = -(hours * rate) - withholding