final Date currentDate = Date.getCurrentDate();
for (Channel channel : ChannelList.getSubscribedChannels()) {
if (channel.getDefaultName().equalsIgnoreCase(channelName)) {
int wrongDays = 0;
for (int days = 0; days < 3; days++) {
ChannelDayProgram dayProgram = TvDataBase.getInstance()
.getDayProgram(currentDate.addDays(days), channel);
if (dayProgram != null) {
Iterator<Program> it = dayProgram.getPrograms();
if (it != null) {
while (it.hasNext()) {
Program program = it.next();
if (program.getTitle().equals(programTitle)) {
int delta = Math.abs(program.getStartTime()