Criticality : When will rare-earth elements end?