How can I provide a value derived from two separate forms