cleaned up daily billing logic