Drainage load is not measured in gallons - it is measured in fixture units, a shorthand that lets codes size a whole branch from the fixtures connected to it. A toilet and a floor drain cannot be added as flows, but they can be added as load.
Fixture Unit Calculator tallies common fixtures into a total drainage load and shows which pipe sizes can carry it.