Since TradingView for some reason removed the small UI element in the symbol details window showing the amount of days left til a company releases its next earnings report, I decided to make my own.
A simple script with options for choosing the position and at what amount of days left the displayed color should change to red (mimicking the old feature).
I would suggest placing the indicator somewhere else than the main price chart, since it will be difficult to place it somewhere where it doesn't obscure something. Default is bottom and right since I place it on a separate volume indicator where the number is clearly visible.