Average time spent, also known as Average Session Duration, is calculated by dividing the total duration of all visits (in seconds) by the total number of visits.