As I already stated, the formulas shared don't always work, because, many times, the time/space used varies from one recursive call to another, based on the input.
But, to our rescue, comes another way i.e. using recurrence relations to analyse time/space complexity for recursive functions.