our $cookingcounter = 350883; our $garlicbreadheadstart = 600; our $ovenempty = 0; my $holdtime = 0; if ( !$ovenempty || $test && ( 0 <= ( $holdtime = $cookingcounter + 60 * 90 - 356400 ) || 0 <= ( $holdtime = $cookingcounter + ( $garlicbreadheadstart - 60 * ( 60 + 15 ) ) - 356400 ) ) ) { die sprintf 'Main Dish or Appetizer Cooking: %d, hold for %d', $cookingcounter, $holdtime; }