confirmed calculations and included parseInt so answer could be an integer.