Setup Virtual Field in Submittable Doctype and chnage its value

i want to setup virtual field in my docytpe that is submittable and should recalculate value every time when document load or refresh ???

you can create custom field for this and in client side set value on that field