How bounding box coordinates are calculated

Hi Igor, how is it going?

I think this answer may help you.