Timestamp startTime=Timestamp.valueOf(map.get("startTime").toString());
Timestamp endTime=Timestamp.valueOf(map.get("endTime").toString());
int buyDays = (int) (startTime.getTime() - endTime.getTime())/(24 * 60 * 60 * 1000);
Timestamp endTime=Timestamp.valueOf(map.get("endTime").toString());
int buyDays = (int) (startTime.getTime() - endTime.getTime())/(24 * 60 * 60 * 1000);