esp8266 as countdown timer to control relay

(timeleft == 900000);  // sets time to 15 min

You use a single = to assign a value to a variable name and two == to check a value against a variable name.
Your checking if timeleft equals 900000 (and doing nothing with the answer) but I assume you want to set it to 900000.