Place your cardboard box outside in direct sunlight, and ensure the top of the box is perfectly level by checking and adjusting if necessary with a spirit level.
Stick your pencil into the center of the top of the box with 5 inches of it exposed above it. Check that the pencil is perfectly vertical and perpendicular to the box with your spirit level.
Measure the length of the shadow created by the sun on the surface of the box. Ensure this measurement is taken in inches.
Divide the height of the pencil (5 inches) with the length of the shadow. For example, if the shadow cast was measured to be 8 inches, 5 ÷ 8 = 0.625.
Find the inverse tangent of the quotient (answer) from Step 4. In the above example, enter into your scientific calculator, "5 ÷ 8 = "shift" "tan" =." You should get an answer of 32.00. This is the angle, in degrees, at the moment of measurement that the sun impacts the pencil and box.
Determine the average angle of impact the sun makes at your location in summer as well as in winter, and adjust the overhang of your south facing roof over a window (in our equation this was represented by the shadow on the box) so that it will shade the entire height of the window (in our equation this was represented by the height of the pencil) in summer, while letting the sunlight in during the winter when the sun sits lower in the sky. This will help to passively heat your home in winter, and help with cooling in summer, through a south facing wall in your home.