Formula that predicts the location of moving enemy
A rocket that explodes not on impact, but explodes on a timer will be shot from myself to the enemy. The timer can only be inputted at the start of the shot. The rocket can only go straight and has a speed of 1500m/s . The enemy is moving in a straight line at a 135 degree angle with a speed of 400m/s. The distance between myself and my enemy is 5000m. I need a formula that predicts the precise time until the rocket should explode so that it will explode directly on my enemy's location.