fixed AGS ratio calculation