Is influxdb support to do mathematics across several measurements?

Last resort, pull the data down into a pandas dataframe (or set of frames) with influxdb-python and run the magic there. In terms of visualization, you can write that data back into influxdb itself or just render using bokeh or any other awesome python lib.