how to calculate offset value to mb value in vxvm

root@erpqas# vxdg -g sap_dg free

DISK DEVICE TAG OFFSET LENGTH FLAGS
sapdisk3 c1t10d0s2 c1t10d0 15707513 2869 -
sapdisk3 c1t10d0s2 c1t10d0 71080956 43335 -
sapdisk5 c1t12d0s2 c1t12d0 70321149 803142 -

root@erpqas# vxassist -g sap_dg maxsize (where sap_dg) is the diskgroup
Maximum volume size: 845824 (413Mb)

by seeing the (vxdg -g sap_dg free) output.how to calculate to get the output of (413mb)

There is a bit of rounding. But, this will get you close.

echo "(((803142+43335+2869)*512)/1024)/1024"|bc
414