A fully charged AXS battery lasts around 25 hours in the Eagle Transmission rear derailleur for most riders in most conditions. Shifting more frequently or riding in very cold weather may reduce battery life.
You can see information on how to check your Eagle AXS Transmission battery life in our article How do I check the battery life on my SRAM Eagle AXS Transmission derailleur?