
ABOUT ME
Hi, I’m Petar Stanic, a data scientist dedicated to transforming complex data into clear, actionable insight.With a solid background in analytics and machine learning I specialize in building predictive models, designing intuitive visualizations, and creating data-driven solutions that solve real-world problems.





The script is a Flask-based API designed to calculate fertility dates. It starts by importing essential modules: Flask, request, and jsonify for web server functionality, datetime and timedelta for date calculations, and CORS from flask_cors to handle cross-origin requests—useful when the frontend and backend are on different domains.
The Flask app is initialized with app = Flask(__name__), and CORS is enabled via CORS(app) to allow external client communication.
A POST endpoint, /calculate, is defined to process fertility calculations. When a POST request is received, the function extracts two values from the JSON body:
Using the input:
last_period + (cycle_length - 14)These dates are calculated using datetime operations.
The API returns a JSON object with:
ovulation_datefertile_window_startfertile_window_endIf the script is run directly, it launches the Flask server on 0.0.0.0:5002, making the API accessible from any IP on that port.

A standalone service focused on function, e.g., user authentication or order processing, built for scalability and fast deployment.

A clean, well-structured code, responsive layout, and basic interactive elements. The focus is on functionality, readability, and adherence to web development best practices.


EMAIL : PETAR_STANIC@LIVE.COM
PHONE NUMBER : 07305134250
LOCATION: LONDON.