Added a helper method that calculates order before date