This model of complexity from the book is very useful:
complexity(system) = sum(complexity(part) * time_spent_in(part) for part in system)