Pregunta de entrevista de Taxfix

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