Automatically calculate input box value is not saved in database

Thanks @ Ahmad for your valuable feedback…