The formula used for calculation is as follows: