both of these should not be ifs ... a 0 for time or amount would be false in the if but then it could not be changed to 0 ... so no if .. just set time and amount like the others