Perhaps I just need to test this in the evening, but I was hoping this would also work in the morning so if it's just after sunset the level is set to 30%, and 30 minutes after sunset its set to 40% or something relative like that... Thats why I was asking about the math involved.
Heading to work, thanks all!