Help with sentence
Hello,
can you help me correct this sentence, please, because tenses and everything else in this sentence is very confusing for me. :D
'I have been considering writing him for a longer time but I didn't have the courage to do so. '
Please answer only if you are really sure you know how to say it correctly, thank you.