I wait until I'm under 1/2 tank of DEF before I top it up mostly to reduce the age of the fluid. Then I will add one "box", usually from Walmart.
I have used bulk DEF from a truck stop a couple of times as well with no issues. The main reason I stopped using it is because it flows so fast it is almost impossible to prevent it from overflowing all over the side of the truck.
The DEF gauge on the Ram is very approximate and conservative so don't be afraid to run it down to 1/2 tank or less before refilling.