changed period to 2.0 to create float.  cast hpd/mpd back to int.  added last_min conversion for final day.
changed period to 2.0 to create float.  cast hpd/mpd back to int.  added last_min conversion for final day.