Tested version of the "applicable_rate" method.