The Function

the function has been made and Math.round will round the answer to the
nearest integer