Then you have to factor in water costs and the cost of detergent to those calculations, and those are fluid so you're going to have a heck of a time trying.
I did those same "weird calculations" a couple of years ago - weighing the cost of a water filter/purifier + maintenance vs simply buying bottled mineral water daily. The answer I arrived at was to not bother with either and just stock up on beer instead.