Use "-" intead of "#"
Move calc_sides to inline
Change method name
Use constant for "-"