What is a WHOIS lookup?
WHOIS lookup queries domain registry databases to retrieve registration information: the registrar, registration date, expiry date, nameservers, and (where not privacy-protected) contact details.
How accurate is the expiry date?
The expiry date comes directly from the domain registry and is authoritative. However, many registrars auto-renew domains, so an imminent expiry does not always mean the domain will drop.