We want to find how many liters are 4 gallons. With a quick search we can find that

Thus, if we want to calculate the equivalent amount in liters, we proceed as follows: We multiply the amount we have in gallons by the equivalent rate

So we have

so 4 gallons are approximately 18.16 liters.