How employer calculates cpp contribution payment?
Here is CRA guide for employer to deduct CPP through payroll.
http://www.cra-arc.gc.ca/tx/bsnss/tpcs/pyrll/clcltng/cpp-rpc/mnnl-eng.html
In case there is under-deducted CPP payment, CRA will contact employer to fix payment.