Charitable Contribution limits

When does charitable contribution have a 50% limit and when does it have a 30% limit. Can someone explain this to me?