Changed the formula as suggested in the comments of the pull request