How to get length of an entity in z axis

Here is an example:

http://i.hizliresim.com/kELayy.jpg

This might point you in the right direction.

İ have tried ent:OBBMaxs():Distance(ent:OBBMins()) but it calculates distance between highest and lowest points of bounding box