Added methods for calculating hours and five minute blocks.
The javascript only outputs a string, all formatting of this
string is done in GetAdvice now.

Change-Id: I8d8c13b90eb6c960400ccb8d173cf3f3d8a7c9c4