period hour to min, add period 15 min, fix calculate index