the math is
 
Legging