Hi Alberto,
How are you planning for the user to ask for this value?
Remember the browser model is _always_ that the browser asks.
If you put it in the header pane of the frame it'll only get updated when they refresh
the header page - which I'm thinking is not often.
Where to put the code?
put it just before the value is used.
So if you've put it in a page, calculate it just before the value is included on the page.
Cheers
Bruce