Sum working for all scenarios