?... although there are some incomprehensible moments for me.
<define property="true" evaluateNow="true">#lenght:#(string.length(#currentremaining))</define>
<define property="true" evaluateNow="true">#end1:#(date.add('n',date.extract('n',cdate(#currentremaining)), date.add('h',date.extract('h',cdate(#currentremaining)),cdate(#time))))</define>
<define property="true" evaluateNow="true">#end2:#(date.add('n',date.extract('n',cdate(#currentremaining,'mm:ss')), date.add('h',date.extract('h',cdate(#currentremaining,'mm:ss')),cdate(#time))))</define>
<define property="true" evaluateNow="true">#end3:#(date.add('s',date.extract('s',cdate(#currentremaining,'m:ss')), date.add('n',date.extract('n',cdate(#currentremaining,'m:ss')), date.add('h',date.extract('h',cdate(#currentremaining,'m:ss')),cdate(#time)))))</define>    <control>
        <description>End1</description>
        <type>label</type>
        <id>0</id>
            <posX>1635</posX>
            <posY>1005</posY>
        <label>Закончится в #(string.ltrim(#end1,'1,2,3,4,5,6,7,8,9,0,.'))</label>
            <textcolor>e6e6e6</textcolor>
            <font>fontB10</font>
        <align>right</align>
        <visible>string.equals(#lenght,7)</visible>
    </control>
    <control>
        <description>End2</description>
        <type>label</type>
        <id>0</id>
            <posX>1635</posX>
            <posY>1005</posY>
        <label>Закончится в #(string.ltrim(#end2,'1,2,3,4,5,6,7,8,9,0,.'))</label>
            <textcolor>e6e6e6</textcolor>
            <font>fontB10</font>
        <align>right</align>
        <visible>string.equals(#lenght,5)</visible>
    </control>
    <control>
        <description>End3</description>
        <type>label</type>
        <id>0</id>
            <posX>1635</posX>
            <posY>1005</posY>
        <label>Закончится в #(string.ltrim(#end3,'1,2,3,4,5,6,7,8,9,0,.'))</label>
            <textcolor>e6e6e6</textcolor>
            <font>fontB10</font>
        <align>right</align>   
        <visible>string.equals(#lenght,4)</visible>
    </control><define property="true" evaluateNow="true">#lenght:#(string.length(#currentremaining))</define>
...
    <control>
        <description>End1</description>
        <type>label</type>
        <id>0</id>
            <posX>1635</posX>
            <posY>1005</posY>
        <label>Закончится: #(date.add('n',date.extract('n',cdate(#currentremaining)), date.add('h',date.extract('h',cdate(#currentremaining)),cdate(#time))))</label>
            <textcolor>e6e6e6</textcolor>
            <font>fontB10</font>
        <align>right</align>
        <visible>[control.isVisible(111)|control.isVisible(10)|control.isVisible(11)|control.isVisible(12)] + string.equals(#lenght,7)</visible>
    </control>
    <control>
        <description>End2</description>
        <type>label</type>
        <id>0</id>
            <posX>1635</posX>
            <posY>1005</posY>
        <label>Закончится: #(date.add('n',date.extract('n',cdate(#currentremaining,'mm:ss')), date.add('h',date.extract('h',cdate(#currentremaining,'mm:ss')),cdate(#time))))</label>
            <textcolor>e6e6e6</textcolor>
            <font>fontB10</font>
        <align>right</align>
        <visible>[control.isVisible(111)|control.isVisible(10)|control.isVisible(11)|control.isVisible(12)] + string.equals(#lenght,5)</visible>
    </control>
    <control>
        <description>End3</description>
        <type>label</type>
        <id>0</id>
            <posX>1635</posX>
            <posY>1005</posY>
        <label>Закончится: #(date.add('s',date.extract('s',cdate(#currentremaining,'m:ss')), date.add('n',date.extract('n',cdate(#currentremaining,'m:ss')), date.add('h',date.extract('h',cdate(#currentremaining,'m:ss')),cdate(#time)))))</label>
            <textcolor>e6e6e6</textcolor>
            <font>fontB10</font>
        <align>right</align>   
        <visible>[control.isVisible(111)|control.isVisible(10)|control.isVisible(11)|control.isVisible(12)] + string.equals(#lenght,4)</visible>
    </control>Yes, date.add return DateTime, string.ltrim work only with string, format DateTime to string and then use ltrimBut in this case I can not use the function string.ltrim - getting error (0).
Well, something like this
we can go to the Russian part of the forum and continue there.There are a few more points. But their features is difficult for me to explain in Russian, and even more so in English