This is the letter of the law. But I have been advised in the past that in practice, if reviewing a case, the tribunal is likely to see the accrual as gradual. So if you fire someone a week before their two years are up, they may well decide it was unfair.