Refactored the duration between commits method to be simpler for CodeClimate.