Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushranjan2 authored Oct 26, 2024
0 parents commit f621a35
Show file tree
Hide file tree
Showing 7 changed files with 6,669 additions and 0 deletions.
8 changes: 8 additions & 0 deletions DeliveryDate.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// utils/deliveryEstimator.js
export const estimateDeliveryDate = (pincode) => {
// Simulate delivery date estimation logic based on pincode
const deliveryDays = Math.floor(Math.random() * 5) + 1; // Random delivery time between 1 to 5 days
const today = new Date();
today.setDate(today.getDate() + deliveryDays);
return today.toDateString();
};
Empty file added app.js
Empty file.
Loading

0 comments on commit f621a35

Please sign in to comment.