start conditional calculation