edit page updated with calculation properly implemented