Calculate coins