Thanks for the reply. I am having some issues calculating left, right, top, bottom. What I have researched says that (bottom = -top).
But in your B calculation and the ones I have seen, top and bottom are added together. To me (top + bottom) should equal 0. But that is obviously not the case since there would be no need to calculate B since it would always be 0.
And thank you again for the help, I appreciate it.