This problem involves exact simple interest in a period of more than a year and covers year 1988 which is a leap year (366days/year). Hence the calculation for each year must be separated and then summed up. Hence
Oct. 24 to Oct. 31, 1987 is 7 days
Nov. 1 to Dec 31, 1987 is 30+31=61 days
Total number of days for year 1987 is 7+61=68 days
Total number of days for year 1988 (leap year) is 366 days
Total number of days for year 1989 (ordinary year) is 365 days
Total number of days for year 1990 is (Jan 1 to Jan 7) 7 days
I(1987) = 1,000,000(0.17)(68/365) = 31,671.23
I(1988) = 1,000,000(0.17)(366/366) = 170,000.00
I(1989) = 1,000,000(0.17)(365/365) = 170,000.00
I(1990) = 1,000,000(0.17)(7/365) = 3,260.27
I(total) = 31,671.23+170,000(2)+3,260.27 = 374,931.50
Note: The answer for this problem could not be lower than the interest for a year because this involves more than two years. The interest for a year is 170,000.00 already as shown in my calculation above, for more than two years its should have an interest of more than the double of a years interest.