compute perc.for.lock and perc.for.23 in fit_inputs