When I went to the future I took a photo of an inventor's desk.
This is an energy efficient window & lighting system that adjusts the light inside depending on the light level outside. Every 5 minutes the window measures the amount of light coming in. Using machines that can measure light & adjustable lights you would just use the equation above to make this possible. That's how it works & how it could be made.