Magic Formula for Drawing Octagons