Can someone help me in this question? I already have the code but the given output seems wrong or my code is wrong?

The New Telephone Company has the following rate structure for long-distance calls:

a. The regular rate for a call is P8 per minute.
b. Any call started after 6:00P.M. (1800 hours) but before
8:00 A.M (0800 hours) is discounted 50%.
c. Any call longer than 60 minutes receives a 15% discount.
d. All calls are subject to 4% federal tax on the cost after any discounts.


Write a program that takes the start time for a call based on a 24-hour clock and the length of the call in minutes. The gross cost (before any discounts or tax) should be displayed followed by the net cost (after discounts are deducted and tax is added).

Input:

Input the start time of the call: 1800
Input the length of call in minutes : 61

Output :

Gross cost : 488.00
Net cost : 430.56