def remaining(total, done) [0, total - done].max end puts remaining(4, 1)