Code Faster in Delphi Book

This book will make you a faster Delphi developer, it doesn't matter if you are just starting out, or have been using Delphi since version 1, you will find all sorts of tips, tricks and hacks to boost your productivity.

previous arrow
next arrow

Movie #5 - My First PHP Application

Just got hold of Delphi For PHP 1.0 and this is my first application written in it.

Click Here for the Video 

The audio quality is not the best in this one - I need a better mic me thinks. 

You can also Click Here for the the formula

Here is the code snippet for the calculation (the only bit of php you need to write):

$PeriodicInterestRate = $this->eInterest->Text / 12 / 100;
$Principal = $this->ePrincipal->Text;
$NumberOfPayments = $this->eTerm->Text * 12;

$MonthlyPayment = ($Principal * $PeriodicInterestRate)  /(1- pow(1+$PeriodicInterestRate, -1 * $NumberOfPayments));
$MonthlyPayment = round($MonthlyPayment, 2);

$this->lMonthlyPayment->Caption = $MonthlyPayment;