2 plus 2 - jQuery plugin It is so awesome. Just look into code. http://rezoner.net/labs/calculate -- thanks to * Ginden * http://ginden.pl/blog/ for great performance tips on that.