public static void Main()
for (var minutes = 0; minutes < 60 * 24 * 7; minutes++)
var hours = minutes / 60M;
var minutesFromHours = (int)Math.Round(hours * 60);
if (minutes != minutesFromHours)
Console.WriteLine($"Expected {minutes} minutes, but got {minutesFromHours} from {hours} hours");
for (var hours = 0.01M; hours < 24; hours += 0.01M)
var minutes = (int)Math.Round(hours * 60);
var hoursFromMinutes = Math.Round(minutes / 60M, 2);
if (hours != hoursFromMinutes)
Console.WriteLine($"Expected {hours} hours, but got {hoursFromMinutes} from {minutes} minutes");
var errorRate = errorCount == 0 ? 0 : (int)((decimal)errorCount / tryCount * 100);
Console.WriteLine($"Done. Found {errorCount} errors in {tryCount:0,000} checks. {errorRate}% error rate");