Cost-benefit analysis FSM