In May, a client asks a law firm whether it can prepare legal contracts. The law firm starts working on a contract for the client on june 15 , delivers it on fune 18 , creates an inwoice on fune 30, and mails the invoice on july 1. The client pays the bill in August. Under the accrual method of accounting, when does the law firm recognize the contract revenue?