A photoperiodic calculator