fixed padding math for when there is more than one series