Guild XP is calculated per hour. Each player in the guild will earn their guild 10 XP every hour they are online. If you have more players online, you will gain more XP per hour.
Currently, levelling is only to show activity and to compete to be on the leaderboard (/g leaderboard). However, there may be rewards for levelling in the future.