MinutesToYears reads a number of minutes (a long, it may be very large) and converts it into years (of 365 days), days, hours and minutes. It also prints the same duration in days only, as a real number.
For the input
1000000000
the program prints
1000000000 minutes is 1902 years, 214 days, 10 hours and 40 minutes
In days only: 694444.4444444445
Work in stages: minutes → hours and remaining minutes; hours → days and remaining hours; days → years and remaining days.