It's a simple formula:
total = rate * time
For example, if you a 10-minute shower, and your showerhead uses 3L of water per minute, then you used 30L of water!