I have the habit of
Tengo la costumbre de salir a conducir los domingos.
I have a habit of going for drives on Sundays.
Tengo la costumbre de andar durante una hora por la mañana.
I have a habit of walking for an hour in the morning.
Tengo la costumbre de quedarme despierto hasta bien entrada la noche.
I have a habit of staying up until well into the night.
Tengo la costumbre de cocinar para mí.
I’m in the habit of cooking for myself.