convert formDate values into integers
output calculations in index page console