Calculation fix.
Fixed test output.
Started to implement historical task status data.