Calculations and concatenations of values in a widget


I have a sensor (Fritz!Box) that shows my current download speed in kbyte/sec.
How can I make it show the value in MB/sec?
How can I divide by 1024?
Also how can I concatenate values in one tile? For example upload and download speed in one widget?