{"id":16635151,"url":"https://github.com/imballinst/minmax","last_synced_at":"2026-03-27T02:16:24.759Z","repository":{"id":80219591,"uuid":"427607033","full_name":"imballinst/minmax","owner":"imballinst","description":"A somewhat simple app to output the minimum discount and maximum discount (along with the expense) for a promotion.","archived":false,"fork":false,"pushed_at":"2021-11-14T04:36:05.000Z","size":86,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-26T18:48:26.407Z","etag":null,"topics":["discount","maximum","minimum","optimum","promotion"],"latest_commit_sha":null,"homepage":"https://minmax.peepohappy.id","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imballinst.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-13T08:15:28.000Z","updated_at":"2021-11-14T04:36:36.000Z","dependencies_parsed_at":"2023-04-23T14:38:11.466Z","dependency_job_id":null,"html_url":"https://github.com/imballinst/minmax","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/imballinst/minmax","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imballinst%2Fminmax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imballinst%2Fminmax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imballinst%2Fminmax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imballinst%2Fminmax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imballinst","download_url":"https://codeload.github.com/imballinst/minmax/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imballinst%2Fminmax/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31009857,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-27T01:56:05.093Z","status":"online","status_checked_at":"2026-03-27T02:00:08.055Z","response_time":164,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["discount","maximum","minimum","optimum","promotion"],"created_at":"2024-10-12T05:50:08.402Z","updated_at":"2026-03-27T02:16:24.721Z","avatar_url":"https://github.com/imballinst.png","language":"HTML","readme":"# minmax\n\nThis is a calculator that I made to easily calculate the minimum and maximum expense when a promotion includes a maximum discount value. Take this example:\n\n- **Minimum expense**: 150.000\n- **Discount percentage**: 30%\n- **Maximum discount value**: 80.000\n\nThere is a \"saturation point\", where if we increase our expense, the discount value would still be 80.000. This is not really efficient (at least for me). If I am using a promotion, I want to stretch the discount as wide as I can, as long as it doesn't hurt my wallet.\n\nAlso, take another example:\n\n- **Minimum expense**: 40.000\n- **Discount percentage**: 35%\n- **Maximum discount value**: 25000\n\nLet's say that, you have 29.000 of expense in your cart. Let's try inputting the above data to this calculator.\n\n| Harga Awal (Rp) | Diskon (Rp) | Harga Akhir (Rp) |\n| --------------- | ----------- | ---------------- |\n| 40.000          | 14.000      | 26.000           |\n| 50.000          | 17.500      | 32.500           |\n| 60.000          | 21.000      | 39.000           |\n| 70.000          | 24.500      | 45.500           |\n| 71.428          | 24.999      | 46.429           |\n\nUsing the above table, we know that, if we add 11.000 more expense, we can save 3.000 at the end, quite literally! Well, of course, the \"best save\" would be not buying anything at all. But, yeah, you get the point.\n\n## Development\n\n### Prerequisites\n\n1. [Yarn](https://yarnpkg.com/) Classic (v1)\n2. [Node.js®](https://nodejs.org/) LTS (at least v14)\n\nAfter that, on root project, do this to install the dependencies:\n\n```bash\nyarn\n```\n\n### Running the server\n\n```bash\n# Generate the Tailwind CSS using JIT mode.\nyarn css:generate\n# Run the server, which opens on port 3000.\nyarn dev\n```\n\nThen, go to http://localhost:3000 to see the UI. You can update the functionality right away in the [`index.html`](src/index.html).\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimballinst%2Fminmax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimballinst%2Fminmax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimballinst%2Fminmax/lists"}