Taxfix interview question

Can you complete this function that should return this value based on the input params_