You're going to have to write some logic though - nothing is built in to do this.