There is no restriction on the last date of registration for a slot, it wholly depends on the availability of slots. Also the test centres get filled really fast, so it's better to book the slot as early as possible to get the most  convenient slot and centre.