calculate inc dynamically to support curves