Read the code and convert to business requirements. Write the logic from the code shown and write all formulas.