the math is
 
Casquettes