If your ride data include true kcal burnt (the ones measured by the torque sensor of the bike) then multiply them by 1.622 (kcal to Wh) and then divide by 4 (25% human body efficiency) = you will get your Wh contribution calculated. Now, divide the last figure by net ride time (in hours) and you will get your average leg power input.