fix compute amount