footer calculations