Calculate a series