How does the vesting of XEM work?

In NEM coins are aged in at 10% per day of the remaining unvested XEM in an account. This is explained in detail in section 2.1 of the NEM Technical Reference.