Find the kesPeriod by dividing the slot tip number by the slotsPerKESPeriod.
I did this manually and got a whole number with a long decimal point. I ran the command and it was a whole number.
kesPeriod=(({slotNo} / ${slotsPerKESPeriod}))
echo kesPeriod: ${kesPeriod}
startKesPeriod=${kesPeriod}
echo startKesPeriod: ${startKesPeriod}
do you use the whole number?