Ok (this is for breeding too) I'm close but I'm a day off....
PHP Code:
$target = $lastweek ;
$today = $lastbred ;
$difference =($today-$target) ;
$days =(int) ($difference/86400) ;
$article_content .= "<i> You must wait ".$days." days before breeding.<br>";
}