Returns a distance between boxes and the left/right side of major unit.
The distance is specified in percents from the box size.