Task_05 minus rate logic