$40,247.88