fix typo in unused fn calculate-new-optimal-factor