How to count values from input field, on example

How to count values from input field, on example

1. I've got INPUT -> "rate" (id)
2. when value in INPUT changes I want to recalculate the VALUE, which I want to on-fly print live in <div id='money'></div>

I do RATE(value)*4;