Simple code of Program of Interest, Saving or Profit Calculator in PHP.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
<?php // Simple Interest, Saving or Profit Calculator in PHP $Principal = 5; $Time = 7; $Rate = 12; $Simple_Interest = NULL; // p = principal // t = time // r = rate // SI = simple interest // Calculate simple interest $Simple_Interest = ($Principal * $Time * $Rate) / 100; // Output echo "Simple Interest = " . $Simple_Interest; ?> |
Output
Simple Interest = 4.2
More Examples of Calculators
- PHP Calculator using GET method
- PHP mortgage calculator script
- Age calculator in PHP
- GPA calculator in PHP
- Scientific calculator in PHP with database
- Interest, Saving or Profit Calculator in PHP
- PHP grade calculator code
- PHP Calculator using Switch statement
- PHP Calculator with Class and Objects
- Calculator design in CSS and Javascript