- round: documentation ( source)
- number_format: documentation ( source)
<?php
$employee_salary = 45000.00;
$days = 29;
$totaldays = 20;
$deduction = 10000.00;
$emp_salary= $totaldays*(round($employee_salary/$days));
echo $emppp= number_format($emp_salary-$deduction ,2);