if ($year % 4) {$nod=$nod-365} else {$nod=$nod-366}; #check for the leap year.