diff($targetdate); $targetprice = round(pow((1+$percent/100), $datediff->days) * $startprice,2); $title = 'Will 1 bitcoin be worth $ ' . number_format($targetprice,2) . ' on ' . $targetdate->format('Y-m-d'). '?'; $description = 'An interactive chart that shows a steady curve to $ ' . number_format($targetprice,2) . ' per bitcoin by ' . $targetdate->format('Y-m-d') . ' along the actual price.'; $img_alt = 'Chart with historical bitcoin prices compared to prediction.'; } } ?>