Customize Speedtest Results / Display

Hi,
I am looking to customize how Speed test displays the results. I’d like to reformat the display such that it shows the following:

‘Ping Download Upload’
‘xx ms nnn Mbps nnn Mbps’

The current display shows download and update as nnn.nn Mbit/s (includes 2 decimal places) with the expanded units of measure. How can I customize the display to show the new values as above? I’ve tried creating new sensors that map to the original speed test sensors but I’m unsure of how to convert the bytes_received / bytes_sent attributes to the Mbps values. My original approach was perhaps there is a way to format the current speed test display but I could not find how to do that so thought perhaps using new sensors might do it but I’m not sure of the conversion to the Mbits/s format.

Appreciate if you can share how to do this.

Thanks