Some drones are absolutely designed to return to home at a certain battery level, and to auto-land at a critical level, while some can even use GPS location data to predict how much battery is required to get back to home, but none that we know of can account for wind and other conditions. Be aware that if you fly out with the wind until you have used exactly half of your battery, you probably won't have enough power left to return, as the extra drain from fighting the wind will stop you short.