Predict the Bomb's Landing Point! Introduction
It was just a normal day, here at your military base. Suddenly, you looked up to see a bomb falling down from the sky! You need to create a program to predict where it will fall, and tell you the location.
Challenge
You will be given a bomb in the form of Start-X Start-Y X-velocity Y-velocity. You can assume that they will all be positive integers. 0 is a valid input only for Start-x and Start-y. The bomb starts with x Start-x, and y Start-y. Each &quot;frame&quot; (no graphical output required), the bomb will move x-velocity units right, then y-velocity units down. Continue doing this until the bomb reaches y of 0 or below. Then, output what it's x was when it hit the ground.
Test Cases
1
Input:0 10 2 2
Output:10
2
Input:5 4 3 2
Output:11
3
Input:11,8,7,3
Output:32
This is code-golf, so shortest answer in bytes wins!
JavaScript, 29 28 bytes

Thanks @user5090812 for golfing off 1 byte



(a,b,x,y)=&gt;a+x*((b+y-1)/y|0)


Try it online!

If it did not have to move x then y but was instead falling in a straight line it would be 18 bytes

(a,b,x,y)=&gt;a+x*b/y