the math is
 
Leggings