Calculate publication dates dynamically