I need to show a horizontal rectangle in a gallery where Width = DateDiff(Today(), AwardDate, Days)/2. The gallery is connected to a SharePoint list in GCC. Getting errors with Concat in HtmlText. What's the correct approach?

I need to show a horizontal rectangle in a gallery where Width = DateDiff(Today(), AwardDate, Days)/2. The gallery is connected to a SharePoint list in GCC. Getting errors with Concat in HtmlText. What's the correct approach?
Concat() for a single gallery row, and you don’t have to use HtmlText at all to draw a bar. The simplest, most reliable approach is to put a Rectangle inside the gallery template and drive its Width from your AwardDate.// Rectangle.Width
Max(
0,
RoundDown(
DateDiff(
Today(),
// If AwardDate is a Date column, use ThisItem.AwardDate.
// If it’s text, wrap with DateValue(ThisItem.AwardDate).
ThisItem.AwardDate,
Days
) / 2,
0
)
)
// Rectangle.Height
8
// Rectangle.X (optional offset)
0
// Rectangle.Fill (color)
RGBA(0,120,212,1)
// (Optional) Handle blanks:
If(IsBlank(ThisItem.AwardDate), 0, /* the expression above */)