Refs #743 - Added a test for contracts with 0 hours and fixed a bug
for contracts with 0 hours