Update formula.js

upadated datevalue function to work exactly like in excel