Check out example codes for "calculate 1 day interest". It will help you in understanding the concepts better.

Code Example 1

#How to calculate 1 day Interest by php 
<?php 
  $amt = 2000;
  $int = 12;
  $days = 30;
  $months= 12;
  $calc = ($amt * $int/100)/ $months / $days;
  echo $calc

#output = 0.66
?>

Learn ReactJs, React Native from akashmittal.com