It's not the best...
I did this all myself! Although, I did take two bits of maths from @Griffpatch's tutorial (I did edit the numbers a bit and I knew what I was looking for).