The earnings must be €705 per month. The pay must come from a country other than Portugal, even though a holder of a residence permit is then allowed to work in Portugal.