Done with calaclate pulsToatl and amediaTotal