adding difference function to utils

adding a new function to utils.php for calculating difference between
two numbers