bright_dark_period function

Brightest or darkest continuous period