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