Jump to content

[SOLVED] Figuring how many days left in month


DrTrans

Recommended Posts

 
              $figureofdays = $apprentamnt / "30";
	 $prorate = $figureofdays * "17";
	 print"<b><font size=\"4\">View Totals:<font></b><br>";
	 print"<b>Security Deposit:</b> $security<br>";
	 print"<b>Rental Amount:</b> $apprentamnt<br>";
              print"<b>Pro-Rated Amount:</b> $prorate<br>";
              print"<b>Pet Fee:</b>$petfee<br>";
$total = $security + $prorate + $petfee; 	   
print"<b>Collect this amount:</b> $total<br>";

 

What im trying to do here is. a replace the "30" and repace the "17"

Is there away i can make it say how many days are in the month? and how many days left from the the current date.

 

Thanks.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.