finish network power demand calculations

not tested but it looks finished for the moment