The math calculation is simple. You can consider the two components of the movement.
The horizontal position, increases at a constant speed:
x := v * t.
The vertical position increases and decreases according a quadratic equation:
y := 0.5 * g * t^2
Where g is constant and is th gravity. You must start from a negative x, is the projectile is launched to up.