Instead, treat your "multiplication result" separate as hold it as an numeric value i.e. an Integer instead. That will be the "number of seconds" that you display from.

Then it's simple to display that number as hours, minutes and seconds: just use Modulus and Integer Divide.

VB

Copy Code

Private Function SecondsToHMS(ByVal value As Integer) As String Dim seconds As Integer = value Mod 60 value = value \ 60 Dim minutes As Integer = value Mod 60 value = value \ 60 Dim hours As Integer = value Return $"{hours:00}:{minutes:00}:{seconds:00}" End Function