Washington Unemployment - Wages (2018) WA_UNEMP_WAGES_2018 python result = (payslip.date_to[:4] == '2018') code ### ytd = payslip.sum('WA_UNEMP_WAGES_2018', '2018-01-01', '2019-01-01') ytd += contract.external_wages remaining = 47300.0 - ytd if remaining <= 0.0: result = 0 elif remaining < categories.BASIC: result = remaining else: result = categories.BASIC Washington Unemployment (2018) WA_UNEMP_2018 python result = (payslip.date_to[:4] == '2018') code result_rate = -contract.wa_unemp_rate(2018) result = categories.WA_UNEMP_WAGES # result_rate of 0 implies 100% due to bug if result_rate == 0.0: result = 0.0