It's up to the giver's discretion to determine how much money to spend. The rule of thumb of "spending enough to cover what the bride and groom/party hosts would have spent on hosting you" is widely accepted, but it should be seen more as a personal guide than an expectation.