wow way too much math and work, just ask someone to do it on cad for you it would take about 3-4 mins, math was fun when I was younger but now not worth the time lol

if you dont have it yet, pm it to me( the dimensions) and I will give you g-code for it. I should be online tomorrow