Calculate coins task