Originally Posted by jlliagre
The real formula is:
swap=max(installed RAM, total virtual memory your system will require one day - RAM);
And seeing that the total virtual memory that you may need is always going to be unknown, we need rules of thumb to get a good approximation.
Of course, your formula is 100% correct though...