$nowtime=time();
$checktime=$nowtime-$member['last_jpay'];
$rate=$job['jinterval'];
if($checktime > $rate){
// timer disable
$timer="Your salary is now able to be collected";
$time=$timer;
} else {
// [Calculate Time Untill Next Payment]
$diff = time()-$member['last_jpay'];
$diff = $diff+$job['jinterval'];
$daysDiff = floor($diff/60/60/24);
$diff -= $daysDiff*60*60*24;
$hrsDiff = floor($diff/60/60);
$diff -= $hrsDiff*60*60;
$minsDiff = floor($diff/60);
$diff -= $minsDiff*60;
$secsDiff = $diff;
$tdays=$daysDiff-1;
$thrs=23-$hrsDiff;
$tmins=59-$minsDiff;
$tsecs=59-$secsDiff;
$timer ="{$tdays} days, ".$thrs." hours, ".$tmins." minutes and ".$tsecs." seconds until you are able to collect your salary";
$time=$timer;