Credit logic