form input calculation version 3