Здравейте. Имам проблем със задачата "Phone bill"

Условието:
A phone bill plan includes 1 hour of free calls and 20 text messages for 12.00 levas . Each additional minute costs 0.10 levas and each additional message costs 0.06 levas . Also, any additional minutes/text messages are subject to 20% sales tax. Write a program that calculates the additional charge for text, the additional charge for minutes, and the sales tax charge for both. Also, display the total amount paid.

Input

  • On the first line, you will receive the total amount of text messages.
  • On the second line, you will receive the total amount of minutes.

Output

  • 1st line - number of additional messages and additional amount paid
  • 2nd line - number of additional minutes and additional amount paid
  • 3rd line - amount paid in taxes
  • 4th line - total bill

Input

31
115

Output

11 additional messages for 0.66 levas
55 additional minutes for 5.50 levas
1.23 additional taxes
19.39 total bill

Получавам грешка при втори и четвърти тест. Благодаря.
 System.out.printf("%d additional messages for %.2f levas%n", messages -20, messagesTotalPrice);

Ако имаш 10 съобщения , тук няма ли да стане -10 ?

Да така е. Благодаря. Ето и корекцията int messages = Integer.parseInt(scanner.nextLine()); int minutes = Inte - Pastebin.com