Fixed sharding frequency calculation which was incorrect when time unit wasn't 'SECONDS'.

- Calculation should now be correct, regardless of the time unit
provided.
- Unit test added when time unit is 'MINUTES'.