Right click this window and select "view source" in order to copy the source for this script.
Click anywhere out of the field for calculation.
View The source. The data input is on either field and converts to the other field. OnFocus clears the fields and it is done directly in the form, unconditionally. There is NO Javascript section. Field alignment is on the right.