Amount of temporary accommodation given to old lover (6)

I believe the answer is:
extent
'amount' is the definition.
(thesaurus)
'temporary accommodation given to old lover' is the wordplay.
'temporary accommodation' becomes 'tent' (I've seen this before).
'given to' says to put letters next to each other.
'old lover' becomes 'ex' (I've seen this in other clues).
'tent' after 'ex' is 'EXTENT'.
'of' is the link.
(Other definitions for extent that I've seen before include "Length" , "Range or scope of something" , "reach?" , "Degree or spread" , "A cake; last word of Macbeth" .)