computing exercisable balance with a reactive function