Painting walls and ceiling together
The ceiling of a rectangular room has the same area as the floor, so a 12 × 14 ft room has a 168 ft² ceiling — roughly half a gallon per coat. Including it in the same estimate makes sure you buy the right number of cans in one trip.
If walls and ceiling are the same colour (common with "ceiling white" walls in rentals), buy everything as one batch so the sheen and tint match. Otherwise, estimate them separately — ceiling paint is usually flat white and walls are eggshell or satin.