Use #value for textareas instead of innerHTML
More complex calculation