The software takes into account the shape of roofs, local weather patterns, the position of sun in the sky at different times of year and shade from nearby buildings or trees to calculate how much energy each building can generate and how much money it can save.