added the function with user info that was stored and added if statement if the user calculation is more than 500