If there are only 365 days, the remaining day must be Tuesday, if the next year is 365 days, the last day of the next year is Wednesday, if it is 366 days, it is Thursday.
If a year is 366 days, then if the first day is Tuesday, the last day of the next year is Thursday.
If the second day is Tuesday, the last day of next year is Wednesday.