updated functional restaurant calculator