How to do Mean calculations in druid

Hi,

I get sensor data every 15mins interval following are the columns timestamp, voltage, current. With this information I have to calculate watts and following is the formula

((v1+v2)/2 *(c1+c2)/2)/1.1

v1 is timestamp1,v2 is timestamp2

c1 is timestamp1,c2 is timestamp2

Is these type of calculations druid supports? If supports could you please help me ingestion and Query.

every day I get 2M rows.

Regards,

Ravi