function return_current_age( $id ) {
$pods = pods('case',$id);
$age = intval($pods->field('age_d'));
$date_missing = $pods->field('c_date');
$date = date("Y-m-d");
$date_diff = intval($date - $date_missing);
$age_now = intval($age + $date_diff);
return $age_now;
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter