you could calc the limit and store it in a variable and then use this variable to set the limit and also for the next line.