New algorithm to quantify terrestrial RFI in space for earth orbiting radio astronomy experiments