I used AI to give me the math on this. (at first we were using complex math that I didn't understand so you can see why I did it) but then it got simple like this.