Use kotlin math. Validate forcedShardCount value (#575)
Use kotlin math. Validate forcedShardCount value (#575)

* Use kotlin math. Validate forcedShardCount value

* Protect against negative times

Flank/flank,Flank/flank,Flank/flank,Flank/flank,Flank/flank,Flank/flank,Flank/flank,Flank/flank,Flank/flank,Flank/flank