generic FI computation