How to calculate multiplicity