calculate money for pub