new attribute for totaltime
new method for calculating the capacity