Add implementation of computeCommission

implement computeCommission and change the lower bound from 0 to 1