How much time to give before calling it quits?

So how much time do we give for someone to do the work to be forgivable? 1.5-2years? Feel like it's a slippery road when unfaithful isn't doing these things consistently and still expects a good/back to or better than before life/living situation.