Wage: US-FL Unemployment WAGE_US_FL_UNEMP python result = (contract.futa_type != contract.FUTA_TYPE_BASIC) code ### year = payslip.dict.date_to.year rate = payslip.dict.get_rate('US_FL_UNEMP') ytd = payslip.sum('WAGE_US_FL_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-FL Unemployment ER_US_FL_UNEMP python result = (contract.futa_type != contract.FUTA_TYPE_BASIC) code rate = payslip.dict.get_rate('US_FL_UNEMP') result_rate = -rate.rate result = categories.WAGE_US_FL_UNEMP # result_rate of 0 implies 100% due to bug if result_rate == 0.0: result = 0.0