At the maximum height, break into smaller projectiles. Use some calculus to calculate what time the maximum height will occur.