Calculating the horizontal displacement theoretically and practically, and finding the maximum horizontal displacement crossed by the projectile