Calculating fixed-size volume size (CV capacity unit is MB)

To calculate the user area capacity of a CV whose capacity unit is defined as megabytes:

ceil(ceil(user-specified-CV-capacity * 1024 / 
capacity-of-a-slot) / 15) * capacity-of-a-slot * 15 

where

To calculate the entire capacity of a CV:

ceil((user-area-capacity + management-area-capacity) /
boundary-value) * boundary-value / 1024

where